/*
        Use memory mapping technology to map the specified file data.
*/

#ifndef _ST_OPEN_FILE_H_
#define _ST_OPEN_FILE_H_

#ifdef __cplusplus
extern "C" {
#endif

struct FilePointer {
    unsigned long long int size;
    char *data;
    int _fd;
};

struct FilePointer * XOpenFile(const char *file);

void XCloseFile(struct FilePointer *filePointer);

#ifdef __cplusplus
}
#endif

#endif
